class Person {
    name: string
    age: number
    constructor(name: string, age: number) {
        this.name = name
        this.age = age
    }
    eating() {
        console.log('eating')
    }
}

class Parent extends Person {
    constructor(name: string, age: number) {
        super(name,age)
    }
    skill() {
        console.log('skill')
    }
    son() {
        console.log(this.name, this.age)
    }
}
const p = new Parent('zhangsan', 18)
console.log(p.eating())
console.log(p.name)
console.log(p.age)
export {}